<template>
  <page-header-wrapper>
    <a-card :bordered="false" style="margin-top:10px">
      <a-tabs :default-active-key="activeTab" @change="callback">
        <a-tab-pane key="list" tab="对账文件管理" >
          <bill-list></bill-list>
        </a-tab-pane>
        <a-tab-pane key="set" tab="对账任务管理" force-render >
          <bill-set></bill-set>
        </a-tab-pane>
      </a-tabs>
    </a-card>
  </page-header-wrapper>
</template>
<script>
import BillList from './billList.vue'
import BillSet from './billSet.vue'

export default {
  data () {
    return {
      activeTab: 'list',
      enable: false, // 是否启用自动对账
      time: 0 // 自动对账执行时间
    }
  },
  components: {
    BillList,
    BillSet
  },
  created () {
    this.activeTab = this.$route.params.typetab || 'list'
  },
  methods: {
    callback (tab) {
      this.activeTab = tab
      this.$router.push(`/bill/billmain/${tab}`)
    }
  }
}
</script>
